package com.test.hj;

public class Teacher extends Person {

	public Teacher(){}
	public Teacher(String name){
		super(name);
	}
	
	@Override
	public void work() {
		beforeWork();
		System.out.println(this.name + "我在上课 ");
		this.afterWork();

	}

	public void beforeWork(){
		System.out.println("准备上课");
	}
	
	public void afterWork(){
		System.out.println("准备下课");
	}

}
